home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sprite 1984 - 1993
/
Sprite 1984 - 1993.iso
/
src
/
boot
/
sunprom
/
devConfig.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-09-17
|
1KB
|
56 lines
/*
* devConfig.c --
*
* Excerpts from the dev module in the kernel.
*
* Copyright 1985 Regents of the University of California
* All rights reserved.
*/
#ifdef notdef
static char rcsid[] = "$Header: /sprite/src/boot/sunprom/RCS/devConfig.c,v 1.1 90/09/17 11:01:50 rab Exp Locker: rab $ SPRITE (Berkeley)";
#endif
#include "sprite.h"
#include "fsBoot.h"
#include "vmSunConst.h"
#include "machMon.h"
/*
*----------------------------------------------------------------------
*
* dev_config --
*
* Boottime device configuration. This is a special version of this
* routine that knows we will be using the PROM driver routines.
*
* Results:
* None.
*
* Side effects:
* This saves the pointer to the boot parameters in the global
* fsDevice so that it is available to the SunPromDevOpen and
* SunPromDevRead routines.
*
*----------------------------------------------------------------------
*/
void
dev_config(paramPtr, fsDevicePtr)
MachMonBootParam *paramPtr; /* PROM parameters */
Fs_Device *fsDevicePtr; /* FS descriptor for the boot device */
{
Mach_MonPrintf("Sprite Boot %s(%d,%d,%d)%s\n", paramPtr->devName,
paramPtr->ctlrNum, paramPtr->unitNum,
paramPtr->partNum, paramPtr->fileName);
fsDevicePtr->serverID = -1;
fsDevicePtr->type = 0;
fsDevicePtr->unit = paramPtr->unitNum;
fsDevicePtr->data = (ClientData)paramPtr;
}